package net.mysoft.budgetsoft.system.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * @author dagongPGP v1.0
 * @link <a href=http://www.mysoft.net>北京大公信软科技有限公司</a>
 * 
 * @version $Revision: 1.00 $Date: 2013-12-27 14:28:41
 */
@Entity
@Table(name = "GongNengJS")
public class TGongNengJS implements java.io.Serializable {
	private String bianHao;
	private String gongNengBH;
	private String jueSeBH;

	@Id
	@Column(name = "BianHao", unique = true, nullable = false)
	public String getBianHao() {
		return this.bianHao;
	}

	public void setBianHao(String bianHao) {
		this.bianHao = bianHao;
	}

	@Column(name = "GongNengBH")
	public String getGongNengBH() {
		return this.gongNengBH;
	}

	public void setGongNengBH(String gongNengBH) {
		this.gongNengBH = gongNengBH;
	}

	@Column(name = "JueSeBH")
	public String getJueSeBH() {
		return this.jueSeBH;
	}

	public void setJueSeBH(String jueSeBH) {
		this.jueSeBH = jueSeBH;
	}

	@Override
	public int hashCode() {
		int prime = 0;
		prime += this.getBianHao().hashCode();
		return prime;
	}

	@Override
	public boolean equals(Object obj) {
		boolean isEquals = false;
		if (obj != null && this.getClass() == obj.getClass()) {
			TGongNengJS clazz = (TGongNengJS) obj;
			if (clazz.getBianHao().equals(this.getBianHao()))
				isEquals = true;
			return isEquals;
		}
		return isEquals;
	}

}